<?php

use yii\helpers\Url;

return [
    [
        'class' => 'kartik\grid\CheckboxColumn',
        'width' => '20px',
    ],
    [
        'class' => 'kartik\grid\SerialColumn',
        'width' => '30px',
    ],

    [
        'class' => 'kartik\grid\ActionColumn',
        'dropdown' => false,
        'vAlign' => 'middle',
        'urlCreator' => function ($action, $model, $key, $index) {
            return Url::to([$action, 'id' => $key]);
        },
        'viewOptions' => ['role' => 'modal-remote', 'title' => 'View', 'data-toggle' => 'tooltip'],
        'updateOptions' => ['role' => 'modal-remote', 'title' => 'Update', 'data-toggle' => 'tooltip'],
        'deleteOptions' => ['role' => 'modal-remote', 'title' => 'Delete',
            'data-confirm' => false, 'data-method' => false,// for overide yii data api
            'data-request-method' => 'post',
            'data-toggle' => 'tooltip',
            'data-confirm-title' => 'Are you sure?',
            'data-confirm-message' => 'Are you sure want to delete this item'],
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'id',
    ],
    [
        'class' => \common\components\grid\KEnumColumn::class,
        'attribute' => 'type',
        'enum' => \common\models\AliCarinfoGetLog::getTypes(),
    ],

    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'car_type',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'car_model',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'vin',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'engine_number',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'car_color',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'registration_certificate_number',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'initial_registration_time',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'register_date',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'invoice_created_date',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'invoice_unit',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'invoice_number',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'plate_num',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'vehicle_type',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'owner',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'invoiceDataCode',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'invoiceNumber',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'billingTime',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'machineCode',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'url',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'request_file_url',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'request_djzs_str',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'request_hgz_text',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'request_fpzw_str',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'o_id',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'uid',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'success',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'request_id',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'config_str',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'resp_body',
    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'created_at',
//    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'use_character',
//    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'addr',
//    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'model',
//    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'engine_num',
//    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'issue_date',
//    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'appproved_passenger_capacity',
//    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'approved_load',
//    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'file_no',
//    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'gross_mass',
//    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'inspection_record',
//    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'overall_dimension',
//    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'traction_mass',
//    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'unladen_mass',
//    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'RtnCode',
//    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'resultCode',
//    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'resultMsg',
//    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'invoiceName',
//    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'invoiceResult',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'invoicefalseCode',
    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'isFree',
//    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'checkCode',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'result',
    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'ret_code',
//    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'comment',
//    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'data',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'Code',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'Message',
    ],
    [
        'class' => '\kartik\grid\DataColumn',
        'attribute' => 'RequsetId',
    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'fpdm',
//    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'fphm',
//    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'kprq',
//    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'num',
//    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'chisses_number',
//    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'new_plate_number',
//    ],
//    [
//        'class' => '\kartik\grid\DataColumn',
//        'attribute' => 'license_driver',
//    ],
];